package cn.com.api.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_coupon_detail;
import cn.com.api.mapper.ApiU_coupon_detailMapper;
import cn.com.api.service.ApiU_coupon_detailService;
import cn.com.api.service.impl.base.U_coupon_detailServiceImplBase;

/**
 * 
 **/
@Service
public class ApiU_coupon_detailServiceImpl extends U_coupon_detailServiceImplBase implements ApiU_coupon_detailService{
	@Autowired
	private ApiU_coupon_detailMapper apiU_coupon_detailMapper;
    
	
     	//新增对象后返回记录ID
    public int U_coupon_detailInsertion(ApiU_coupon_detail u_coupon_detail){
        return this.apiU_coupon_detailMapper.U_coupon_detailInsertion(u_coupon_detail);
    }


	@Override
	public List<Map<String, Object>> findU_coupon_detailsByCondition(
			Map<String, Object> condition) {
		// TODO Auto-generated method stub
		return apiU_coupon_detailMapper.findU_coupon_detailsByCondition(condition);
	}
	
	@Override
	public int findU_coupon_usenum(
			Map<String, Object> condition) {
		return apiU_coupon_detailMapper.findU_coupon_usenum(condition);
	}


	@Override
	public int findU_coupon_allnum(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return  apiU_coupon_detailMapper.findU_coupon_allnum(param);
	}


	@Override
	public List<Map<String, Object>> findU_coupon_amountByCondition(
			Map<String, Object> param) {
		// TODO Auto-generated method stub
		return  apiU_coupon_detailMapper.findU_coupon_amountByCondition(param);
	}
 
}


